package main.java.org.controller;

import lombok.extern.slf4j.Slf4j;
import main.java.Exam.pojo.tableVO.LogVO;
import main.java.org.result.Result;
import main.java.org.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("log")
@Slf4j
public class LogContreller {
    @Autowired
    LogService logService;
@GetMapping("/info")
    public Result<List<LogVO>> loginfo(){
    log.info("返回日志信息");
    return Result.success(logService.getlog());
}









}
